package com.wyj.wuliwuli.entity.mapper;

import com.wyj.wuliwuli.entity.WuliUserVideoLike;
import com.wyj.wuliwuli.entity.WuliVideo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author wyj
 * @version 1.0
 * @date 2022/2/14 18:13
 * @description
 */

public interface WuliUserVideoLikeMapper extends JpaRepository<WuliUserVideoLike, Long> {
    List<WuliUserVideoLike> findAllByUser_Id(Long user_id);
    List<WuliUserVideoLike> findAllByVideo_Id(Long video_id);
    List<WuliUserVideoLike> findAllByUser_IdAndVideo_Id(Long user_id, Long video_id);
}
